<?php
/**
 * 有赞授权
 */
use Illuminate\Support\Facades\Route;

/**
 * @see \App\Providers\RouteServiceProvider::initMacros()
 * @see \App\Http\Controllers\CorsController::preFlightCheck()
 */
Route::corsAny();


/**
 * 有赞授权地址
 * @see \App\Http\Controllers\Youzan\OAuthController::redirectToAuthorize()
 */
Route::get('authorize','OAuthController@redirectToAuthorize');

/**
 * 有赞授权回调
 * @see \App\Http\Controllers\Youzan\OAuthController::authorizeCallback()
 */
Route::get('authorize-callback','OAuthController@authorizeCallback')
    ->name(\App\Http\Controllers\Youzan\OAuthController::PRE_AUTH_CALLBACK_ROUTE);